{% extends 'usercenter-fav-org.html' %}
{% load staticfiles %}

{% block right_content %}
    <div class="right" >
            <div class="personal_des Releasecont">
                <div class="head">
                    <h1>我的收藏</h1>
                </div>

            </div>

            <div class="personal_des permessage">
                <div class="head">
                    <ul class="tab_header messagehead">
                        <li {% if type == '2' %}class="active"{% endif %}><a href="{% url 'user:user_fav' '2' %} ">课程机构</a> </li>
                        <li {% if type == '3' %}class="active"{% endif %}><a href="{% url 'user:user_fav' '3' %} ">授课教师 </a></li>
                        <li {% if type == '1' %}class="active"{% endif %}><a href="{% url 'user:user_fav' '1' %} ">公开课程</a></li>
                    </ul>
                </div>
                {% block fav %}
                <div class="companycenter">
                    <div class="group_list brief">
                        {% for course in all_favcourses %}
                            <div class="module1_5 box">
                            <a href="{% url 'course:course_detail' course.id %}">
                                <img width="214" height="190" src="{{ MEDIA_URL }}{{ course.image }}"/>
                            </a>
                            <div class="des">
                                <a href="{% url 'course:course_detail' course.id %}"><h2>{{ course.name }}</h2></a>
                                <span class="fl">时长：<i class="key">{{ course.learn_time }}</i></span>
                                <span class="fr">学习人数：{{ course.students }}</span>
                            </div>
                            <div class="bottom">
                                <span class="fl">{{ course.course_org }}</span>
                                <span class="delete-group fr jsDeleteFav_course" data-favid="{{ course.id }}"></span>
                            </div>
                        </div>
                        {% endfor %}
                    </div>
                </div>
                {% endblock %}
            </div>
        </div>
{% endblock %}
